/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export const bizRouterForEmployee = [

  {
    path: '/lisenceEmployee',
    component: Layout,
    meta:{roles:["0","1"]},
    children: [
      {
        path: 'lisenceEmployee',
        component: () => import('@/views/lisenceEmployee/index'),
        name: 'lisenceEmployee',
        meta: { title: '协议工管理', icon: 'dashboard', roles:["0","1"]}
      }
    ]
  },
  {
    path: '/licenseSelect',
    component: Layout,
    meta:{roles:["0","2"]},
    children: [
      {
        path: 'licenseSelect',
        component: () => import('@/views/licenseSelect/index'),
        name: 'licenseSelect',
        meta: { title: '协议工检索', icon: 'dashboard',roles:["0","2"] }
      }
    ]
  },
  {
    path: '/applyLog',
    component: Layout,
    meta:{roles:["0","1","2"]},
    children: [
      {
        path: 'applyLog',
        component: () => import('@/views/applyLog/index'),
        name: 'applyLog',
        meta: { title: '访客预约单记录', icon: 'dashboard', roles:["0","1","2"] }
      }
    ]
  },
  // {
  //   path: '/wechatUser',
  //   component: Layout,
  //   children: [
  //     {
  //       path: 'wechatUser',
  //       component: () => import('@/views/wechatUser/index'),
  //       name: 'wechatUser',
  //       meta: { title: '微信用户管理', icon: 'dashboard', affix: true }
  //     }
  //   ]
  // },
  // {
  //   path: '/station',
  //   component: Layout,
  //   children: [
  //     {
  //       path: 'station',
  //       component: () => import('@/views/station/index'),
  //       name: 'station',
  //       meta: { title: '站点管理', icon: 'dashboard', affix: true }
  //     }
  //   ]
  // },

  {
    path: '/systemUser',
    component: Layout,
    meta:{roles:["0"]},
    children: [
      {
        path: 'systemUser',
        component: () => import('@/views/systemUser/index'),
        name: 'systemUser',
        meta: { title: '系统用户管理', icon: 'dashboard',  roles:["0"] }
      }
    ]
  },
      {
    path: '/org',
    component: Layout,
    meta:{roles:["0"]},
    children: [
      {
        path: 'org',
        component: () => import('@/views/org/index'),
        name: 'org',
        meta: { title: '组织机构', icon: 'dashboard', roles:["0"] }
      }
    ]
  },
  // {
  //   path: '/dict',
  //   component: Layout,
  //   children: [
  //     {
  //       path: 'dict',
  //       component: () => import('@/views/dict/index'),
  //       name: 'dict',
  //       meta: { title: '字典管理', icon: 'dashboard', affix: true }
  //     }
  //   ]
  // },
  // {
  //   path: '/systemConfig',
  //   component: Layout,
  //   children: [
  //     {
  //       path: 'systemConfig',
  //       component: () => import('@/views/systemConfig/index'),
  //       name: 'systemConfig',
  //       meta: { title: '系统配置', icon: 'dashboard', affix: true }
  //     }
  //   ]
  // }
]

export const bizRouterForGuard = [

  {
    path: '/licenseSelect',
    component: Layout,
    children: [
      {
        path: 'licenseSelect',
        component: () => import('@/views/licenseSelect/index'),
        name: 'licenseSelect',
        meta: { title: '协议工检索', icon: 'dashboard',  }
      }
    ]
  },
  {
    path: '/applyLog',
    component: Layout,
    children: [
      {
        path: 'applyLog',
        component: () => import('@/views/applyLog/index'),
        name: 'applyLog',
        meta: { title: '访客预约单记录', icon: 'dashboard',  }
      }
    ]
  },

]




